package com.haohe.wx.wechat.common;

import org.apache.log4j.Logger;

import com.haohe.wx.util.PropertiesReadUtil;

public class WxConfig {

	private static Logger logger = Logger.getLogger(WxConfig.class);
	private String url;
	private String token;
	private String encodingAESKey;
	private String appid;
	private String appSecret;
	private String accessTokenServer;
	private String jsApiTicketServer;
	private static WxConfig config = new WxConfig();

	public WxConfig(){		
		this.appid = PropertiesReadUtil.INSTANCE.getProperty("AppID");
		this.appSecret = PropertiesReadUtil.INSTANCE.getProperty("AppSecret");
		this.url = PropertiesReadUtil.INSTANCE.getProperty("access_token_url");
		logger.info("");
	}
	public String getUrl() {
		return url;
	}

	public String getToken() {
		return token;
	}

	public String getEncodingAESKey() {
		return encodingAESKey;
	}

	public String getAppid() {
		return appid;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public String getAccessTokenServer() {
		return accessTokenServer;
	}

	public String getJsApiTicketServer() {
		return jsApiTicketServer;
	}

	public static WxConfig getInstance() {
		return config;
	}

}
